/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.teach.entity;

import com.lczyfz.istep.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

import com.lczyfz.istep.common.persistence.DataEntity;

/**
 * 学生考试中间表Entity
 * @author cqh
 * @version 2017-05-16
 */
public class TeachStudentPaper extends DataEntity<TeachStudentPaper> {
	
	private static final long serialVersionUID = 1L;
	private String userId;		// 学生id
	private String paperId;		// 试卷id
	private String questionId;		// 考题id
	private String score;		// 学生成绩
	private String answer;		// 学生答案
	
	public TeachStudentPaper() {
		super();
	}

	public TeachStudentPaper(String id){
		super(id);
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Length(min=0, max=64, message="试卷id长度必须介于 0 和 64 之间")
	public String getPaperId() {
		return paperId;
	}

	public void setPaperId(String paperId) {
		this.paperId = paperId;
	}
	
	@Length(min=0, max=64, message="考题id长度必须介于 0 和 64 之间")
	public String getQuestionId() {
		return questionId;
	}

	public void setQuestionId(String questionId) {
		this.questionId = questionId;
	}
	
	@Length(min=0, max=64, message="学生成绩长度必须介于 0 和 64 之间")
	public String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}
	
	@Length(min=0, max=64, message="学生答案长度必须介于 0 和 64 之间")
	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}


}